package com.example.test0.model;

import lombok.Data;

@Data
public class GoodsImfBean {
    private String id;
    private String name;
    private String address;

    public GoodsImfBean(String id, String name, String address) {
        this.id = id;
        this.name = name;
        this.address = address;
    }

    public GoodsImfBean(Goods goods) {
        this.id = goods.getId();
        this.name = goods.getName();
        this.address = goods.getAddress();
    }

    public String toString() {
        return "Goods{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
